﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Device.Location;
using System.IO;
using Windows.Storage;

namespace RunCoachMobileApp.Models
{
    public class FakeServiceClient
    {
        public Int32 Login(String username, String password)
        {
            return 2;
        }

        public void Logout()
        {
        }

        public Boolean RegisterUser(String username, String realname, String password)
        {
            return true;
        }

        public Boolean changePassword(String username, String new_password, String old_password)
        {
            return true;
        }

        public Boolean getDataFromMobile(DateTime start_time, DateTime end_time, List<GeoCoordinate> coordinates, Dictionary<String, Double> int_values)
        {
            return true;
        }

        public Runs[] getAllRunsData(Int32 user_id)
        {
            List<Runs> myRuns = new List<Runs>();
            myRuns.Add(new Runs()
            {
                id = 2,
                start_time = new DateTime(20140926101212),
                end_time = new DateTime(20140926102212),
                avg_speed = 12,
                avg_speed2 = 12,
                distance = 12,
                user_id = user_id
            });
            myRuns.Add(new Runs()
            {
                id = 3,
                start_time = new DateTime(20140926101212),
                end_time = new DateTime(20140926102212),
                avg_speed = 12,
                avg_speed2 = 12,
                distance = 12,
                user_id = user_id
            });

            return myRuns.ToArray();
        }

        public Boolean deleteRunData(Int32 id, Int32 user_id)
        {
            return true;
        }

        public List<GeoCoordinate> getRunCoordinates(Int32 run_id, Int32 user_id)
        {
            List<GeoCoordinate> _geoCoordinates = new List<GeoCoordinate>();
            _geoCoordinates.Add(new GeoCoordinate(1, 1, 1));
            _geoCoordinates.Add(new GeoCoordinate(1, 2, 1));
            _geoCoordinates.Add(new GeoCoordinate(1, 3, 1));
            _geoCoordinates.Add(new GeoCoordinate(1, 4, 1));
            _geoCoordinates.Add(new GeoCoordinate(2, 4, 1));
            _geoCoordinates.Add(new GeoCoordinate(3, 4, 1));
            _geoCoordinates.Add(new GeoCoordinate(4, 3, 1));
            _geoCoordinates.Add(new GeoCoordinate(5, 2, 1));

            return _geoCoordinates;
        }
    }
}
